<?php

namespace app\course\event\subscribes\course;

use app\course\event\listeners\course\CoursePurchase;
use app\course\event\listeners\course\CourseSell;
use app\user\event\listeners\user\CourseCredit;
use think\Event;

class Course
{
    public function subscribe(Event $event)
    {
        // 课程购买 - 积分及通知
        $event->listen('CoursePurchase', CourseCredit::class);
        $event->listen('CoursePurchase', CoursePurchase::class);
        $event->listen('CoursePurchase', CourseSell::class);

        // 课程分享购买 - 积分及通知
        $event->listen('CourseShare', CourseCredit::class);

    }
}
